package com.arlin.springcloud;

import com.arlin.myRule.ArlinRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @ClassName: DeptConsumer80
 * @Description: TODO
 * @Author: arlin
 * @Date: 2021/3/21
 */
//Ribbon和Eureka整合以后，客户端可以直接调用，不用关心IP地址和端口号
@SpringBootApplication
@EnableEurekaClient
//在服务启动时就会自动加载我们自定义的Ribbon类-->ArlinRule
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT", configuration = ArlinRule.class)
public class DeptConsumer80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer80.class, args);
    }
}
